package com.sie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * 权限实体类
 */
@Data
@TableName("authority")
public class Authority implements Serializable {
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Authority authority = (Authority) o;
        return authId.equals(authority.authId) && authName.equals(authority.authName) && authLv.equals(authority.authLv) && authParentId.equals(authority.authParentId) && authNo.equals(authority.authNo) && authCallout.equals(authority.authCallout) && authPath.equals(authority.authPath) && authStatus.equals(authority.authStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(authId, authName, authLv, authParentId, authNo, authCallout, authPath, authStatus);
    }

    /**
     * 权限id
     */
    @TableId(type = IdType.AUTO)
    private String authId;
    /**
     * 权限名称
     */
    private String authName;
    /**
     * 权限等级
     */
    private String authLv;
    /**
     * 父级权限id
     */
    private String authParentId;
    /**
     * 序号
     */
    private String authNo;
    /**
     * 标识
     */
    private String authCallout;
    /**
     * 访问路径
     */
    private String authPath;
    /**
     *
     */
    private String authStatus;
}